package com.situ.gcbs.server.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 功能：会员实体
 *
 * @author 千堆雪
 * @version 1.0.0
 * @since 2024/5/16
 * <p>
 * created by 千堆雪 on 2024/5/16 10:03, last modified by 千堆雪 on 2024/5/16 10:03
 */
@Getter
@Setter
public class Member {
    @ExcelProperty("主键")
    private Integer id;//主键
    @ExcelProperty("姓名")
    private String name;//姓名
    @ExcelProperty("密码")
    private String password;//密码
    @ExcelProperty("手机号")
    private String phone;//手机号
    @ExcelProperty("性别")
    private String sex;//性别

    @ExcelProperty("拼音")
    private String pinyin;
    @ExcelProperty("邮箱")
    private String email;
    @ExcelProperty("QQ")
    private String qq;
    @ExcelProperty("微信")
    private String wechat;
    @ExcelProperty("出生日期")
    private LocalDate birthday;
    @ExcelProperty("身份证号")
    private String cardId;
    @ExcelProperty("备注")
    private String description;

    @ExcelProperty("是否删除")
    private Boolean isDel = false;//不删除

    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
}
